<template>
  <!-- <div>
    <div>
     
      <Teleport to="body">
        <div>
          {{ msg }}
        </div>
      </Teleport>
      <button @click="msg='你好'">changeMsg</button>
    </div>
  </div> -->

  <div class="outer">
    <h3>Tooltips with Vue 3 Teleport</h3>
    <div>
      <MyModal />
    </div>

    <Teleport to="body">
      <div>hello2</div>
    </Teleport>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import MyModal from './components/MyModel.vue'
const msg = ref('hello')
</script>